package com.hll.service;

import com.hll.mapper.UserMapper;
import com.hll.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    //注入mapper对象
    @Autowired
    private UserMapper userMapper;
    @Override
    public Users findByName(String username) {
        return userMapper.findByName(username);
    }

    @Override
    public Users findById(Integer uid) {
        return userMapper.findById(uid);
    }
}
